load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")

cc_library(
    name = "flyweight",
    srcs = ["Flyweight.cc"],
    hdrs = ["Flyweight.h"],
)

cc_test(
    name = "test",
    srcs = ["Flyweight-test.cc"],
    copts = ["-Iexternal/gtest/include"],
    deps = [
        "@gtest//:gtest_main",
        ":flyweight",
    ],
)
